class server_list():
    def __init__(self,params):
        # params为传递进入的参数列表
        self.cpu=params[1]
        self.memory=params[2]
        self.fixcost=params[3]
        self.daycost=params[4]
class vm_list():
    def __init__(self,params):
        # params为传递进入的参数列表
        self.cpu=params[1]
        self.memory=params[2]
        self.istwo=params[3]
class server():
    def __init__(self,params):
        # params为传递进入的参数列表[name,A margin,B margin]
        self.name=params[0]
        self.margin={'A':params[1],'B':params[2]}
        self.vmid=[]
        self.offset={'A':1,'B':1}
class vm():
    def __init__(self,params):
        # params为传递进入的参数列表[name]
        self.name=params[0]
        self.serverid=-1
        self.servernode=-1
        self.offset=1
